<%- include tile/header %>
<h1>userName: <%= Model.userName %> <%= params.id %></h1>
<section>
    <div><input type="text" name=""></div>
    <div><input type="password" name=""></div>
    <input type="text" name=""> <img src="/verifyImage" onclick="this.src='/verifyImage?_='+ +new Date">
    <div><button>登录</button><img src=""></div>
</section>
<ol>
    <% Model.mp3 && Model.mp3.forEach(function(item){ %>
    <li><%= item.filePath %></li>
    <% }) %>
</ol>
<%- Model.proxy %>
<script>
$('button').on('click', function(){
    var userName = $(':text').val();
    var pwd      = $(':password').val();
    var yzm      = $(':text').last().val();
    if( userName ){
        $.post('/userLogin.json', {username: userName, password: pwd, verifycode: yzm}, function( res ){
            console.log( res );
        })
    }
})
</script>